import React from 'react'
import Layout from './pages/Layout/Layout.jsx'

import Login from '@/pages/Login/Login.jsx'
import NotFound from './pages/NotFound/NotFound.jsx'
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'

import { Provider } from 'react-redux'
import store from './store'
function App () {
  return (
    <div className="app">
      <Provider store={store}>
        <Router>
          <Switch>
            <Route path="/" exact component={Login} />
            <Route path="/login" component={Login} />
            <Route path="/home" component={Layout} />
            <Route component={NotFound} />
          </Switch>
        </Router>
      </Provider>
    </div>
  )
}

export default App
